<?php /* Smarty version Smarty-3.1.11, created on 2012-10-08 12:13:03
         compiled from "_templates\calendar\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:211765072a72fa70f90-24846181%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '155794feb059d722bc817f121ea992db4c1eca9b' => 
    array (
      0 => '_templates\\calendar\\index.tpl',
      1 => 1349677401,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '211765072a72fa70f90-24846181',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'value' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5072a72fb543d0_86813372',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5072a72fb543d0_86813372')) {function content_5072a72fb543d0_86813372($_smarty_tpl) {?><link rel='stylesheet' type='text/css' href='_css/cupertino/theme.css' />
<link rel='stylesheet' type='text/css' href='_css/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='_css/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='_javascript/fullcalendar.min.js'></script>
<script type='text/javascript'>
	$(document).ready(function() {
			var calendar = $('#calendar').fullCalendar({
			theme: true,
			header: {
				left: 'prev,next today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			selectable: false,
			selectHelper: false,
			select: function(start, end, allDay) {
				var title = prompt('Event Title:');
				if (title) {
					calendar.fullCalendar('renderEvent',
						{
							title: title,
							start: start,
							end: end,
							allDay: allDay
						},
						true // make the event "stick"
					);
				}
				calendar.fullCalendar('unselect');
			},
			editable: false,
			weekends: false,
			events: <?php echo $_smarty_tpl->tpl_vars['value']->value;?>

		});
	});
</script>
<style type='text/css'>
	#calendar {
		width:90%;
		margin: 0 auto;
		}

</style>
<article class="module width_full">
    <header><h3><?php echo $_smarty_tpl->getConfigVariable('supportcalendar');?>
</h3></header>
        <div class="module_content">
            <div class="content" style="height:600px;">
                <fieldset>
                    <label><?php echo $_smarty_tpl->getConfigVariable('supportcalendar');?>
</label>
						<div id="calendar"></div>
                </fieldset>
			</div>
        </div>
	<footer>
		<div class="submit_link">
			<a href="index.php?mod=calendar&page=add"><input type="submit" value="<?php echo $_smarty_tpl->getConfigVariable('add_support');?>
" class="alt_btn"></a>
		</div>
	</footer>
</article>

<?php }} ?>